package eiisan.decorator;

/**
 * @description: Concrete Decorator 具体装饰角色A
 * @author: eii
 * @time: 2020/7/12 4:47 下午
 */
public class ConcreteDecorator1 extends Decorator {

    public ConcreteDecorator1(Component component) {
        super(component);
    }

    @Override
    public void doSomething() {
        super.doSomething();
        this.doAnotherThing();
    }
//装饰对象可以在转发这些请求以前或以后增加一些附加功能
    private void doAnotherThing(){
        System.out.println("具体装饰角色" + ConcreteDecorator1.class + ",附加功能 A");
    }
}
